<?php 

class BloggArray
{
	private $m_BlogsPosts = array();
	public function __construct(){

	}
	public function add(Blogg $bloggpost)
	{
		$this->m_BlogsPosts[] = $bloggpost;
	}
	public function get() 
	{
		return $this->m_BlogsPosts;
	}
}
class Blogg {
	
	private $m_postId; // int 
	private $m_date; //date
	private $m_title;//string 
	private $m_post; //string

	public function __construct($postId, $date, $title, $post) {
		
		$this->m_postId = $postId;
		$this->m_date = $date;
		$this->m_title = $title;
		$this->m_post = $post;
	}

	public function getPostId()
	{
		return $this->m_postId;
	}
	public function getDate()
	{
		return $this->m_date;
	}
	public function getTitle() 
	{
		return $this->m_title;
	}
	public function getPost()
	{
		return $this->m_post;
	}
}